package com.wl.controller;

import org.springframework.security.access.annotation.Secured;
import org.springframework.security.access.prepost.PostAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    //@Secured("ROLE_PRODUCT")
    @RequestMapping("/findAll")
    public String findAll(){
        return "订单列表查询成功！";
    }

    @RequestMapping("/addorder")
    public String addOrder(){
        return "添加订单列表查询成功！";
    }
    @RequestMapping("/updateorder")
    //@Secured("ROLE_UP_ORDER")
    public String updateOrder(){
        return "修改订单成功！";
    }

}
